<% if opts[:array] %>[[<%= opts[:path] %>]]<% else %>[<%= opts[:path] %>]<% end %>
<%- schema.grouped.each_with_index do |(title, options), index| -%>
  <%- if schema.categories.length > 1 -%>
  <%- if index > 0 -%>

  <%- end -%>
  # <%= title %>
  <%- end -%>
  <%- options.each do |option| -%>
    <%- if option.array?("table") -%>
<%= config_schema(option.options, path: "#{opts[:path]}.#{option.name}", array: true).indent(2) %>
    <%- elsif option.table? && option.inline? -%>
  <%= option.name %> = {<%= option.options.first.name %> = <%= schema.type_string(option.options.first.type, option.options.first.enum) %>}
    <%- elsif option.table? -%>
<%= config_schema(option.options, path: "#{opts[:path]}.#{option.name}").indent(2) %>
    <%- else -%>
  <%= option.name %> = <%= schema.type_string(option.type, option.enum) %>
    <%- end -%>
  <%- end -%>
<% end -%>